package com.cs2340.taskplusplus;

/*
 * Contains a static latitude and longitude location
 * Used in MapViewDisplay and NewTaskScreen to coordinate location details
 */
public class CurrentLocation
{

	private static int lat;
	private static int lon;
	private static String name;
	
	public static void setLat(int lat)
	{
		CurrentLocation.lat = lat;
	}
	
	
	public static void setLon(int lon)
	{
		CurrentLocation.lon = lon;
	}
	
	
	public static int getLat()
	{
		return lat;
	}
	
	public static int getLon()
	{
		return lon;
	}
	
	public String toString(){
	
		return String.valueOf(lat)+", "+String.valueOf(lon);
	
	}


	public static void setName(String name) {
		CurrentLocation.name = name;
	}


	public static String getName() {
		return name;
	}
	
}
